#!/usr/bin/env python3
from dataclasses import dataclass
from typing import List


# @dataclass
class CBBATask:
    
    def __init__(self, task_id: int, target_id: int, task_type: int, task_value: float, start_time: float, end_time: float, duration: float, discount: float, x: float, y: float, z: float, velocity: List[float], enemy_scan_range: float, enemy_lock_range: float):
        self.task_id = task_id
        self.target_id = target_id
        self.task_type = task_type
        self.task_value = task_value
        self.start_time = start_time
        self.end_time = end_time
        self.duration = duration
        self.discount = discount
        self.x = x
        self.y = y
        self.z = z
        self.velocity: List[float] = velocity  # target velocity (meters/sec)
        self.enemy_scan_range: float = enemy_scan_range  # enemy scan range (meters)
        self.enemy_lock_range: float = enemy_lock_range # enemy lock range (meters)
